table! {
    comments (id) {
        id -> Int4,
        user_id -> Int4,
        diary_id -> Int4,
        body -> Text,
        created_at -> Timestamptz,
        updated_at -> Timestamptz,
    }
}

table! {
    diaries (id) {
        id -> Int4,
        user_id -> Int4,
        body -> Text,
        published -> Bool,
        created_at -> Timestamptz,
        updated_at -> Timestamptz,
    }
}

table! {
    users (id) {
        id -> Int4,
        username -> Text,
        password -> Text,
        created_at -> Timestamptz,
        updated_at -> Timestamptz,
    }
}

joinable!(comments -> diaries (diary_id));
joinable!(comments -> users (user_id));
joinable!(diaries -> users (user_id));

allow_tables_to_appear_in_same_query!(
    comments,
    diaries,
    users,
);
